package com.hk.card;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class TakenCard {
	private JLabel jLabel;
	private int number = 0;
	//
	public TakenCard() {
		this.jLabel = new JLabel();
	}
	//set
	public void SetCard(ImageIcon iIcon, int number) {
		this.jLabel.setIcon(iIcon);
		this.number = (number>10)? 10 : number;
	}
	public void SetBounds(int x, int y, int width, int high) {
		this.jLabel.setBounds(x, y, width, high);
	}
//	public void setSplit(JLabel jLabel, int number) {
//		this.jLabel.setIcon(jLabel.getIcon());
//		this.number = number;
//	}
	//get
	public JLabel getjLabel() {
		return jLabel;
	}
	public int getNumber() {
		return number;
	}
}
